草庐IT

net ERR_FAILED

全部标签

php - 连接失败 : php_network_getaddresses: getaddrinfo failed: System error

Connectfailed:php_network_getaddresses:getaddrinfofailed:Systemerror“系统错误”部分真让我失望。几个月来我一直在与这个错误作斗争,它是零星的。它似乎来self的数据库连接器。重新启动php-fpm似乎可以缓解大约24小时的问题,直到它再次开始出现问题。我原以为它可能会用php-fpm攻击maxchildren,但在检查php-fpm状态后,事实并非如此。我已经尝试将错误与应用程序的syslog和nginx错误日志相关联,但我的想法已经用完了。关于如何解决此问题的任何想法? 最佳答案

php - 无法下载 "https://getcomposer.org/versions"文件 : SSL operation failed with code 1. OpenSSL 错误消息:错误:1416F086

我正在尝试在Windows上安装composer,但出现以下错误:The"https://getcomposer.org/versions"filecouldnotbedownloaded:SSLoperationfailedwithcode1.OpenSSLErrormessages:error:1416F086:SSLroutines:tls_process_server_certificate:certificateverifyfailedFailedtoenablecryptofailedtoopenstream:operationfailed.这是怎么回事,我该如何解决?

PHP:fopen 失败 "HTTP Request Failed",但响应 header 的状态代码为 200

我有一个PHP脚本,它应该连接到一个从代理列表中选择的代理并下载一个文件。一些代理(在200-400个工作代理中)工作完美,但其他的则不能,我无法找出原因。这里是通过代理连接的代码:$proxy=determine_proxy($proxyList);$proxyString='tcp://'.$proxy['ip'].':'.$proxy['port'];$userAgent=$userAgents[rand(0,$agentsCount-1)];//setupourheaders$hdrs=array('http'=>array('method'=>"GET",'header'=>

php - 下载 zip 文件 "Failed network error"(PHP/NGINX)

当我尝试从我的实时服务器下载zip文件时,我的浏览器(Chrome和Firefox)出现以下错误,https://mysite.com:失败的网络错误。令人困惑的是,在我的本地主机上使用来self的实时服务器的相同代码(如下)允许我成功下载相同的zip文件:$path=$data['path_new']='uploads/some-path/';$file_name='test.zip';$file=$path.$file_name;header("Content-Disposition:attachment;filename=".$file_name);header("Content

php - Laravel 错误 - 未知 : Failed opening required '. ./public' (include_path ='.;C:\php\pear\' ) in Unknown on line 0

我正在使用Laravel5,我正在使用PHP函数php-Slocalhost:8888folder-name-t来显示网站。在我更新到Window10之前一切正常。现在,我尝试在我的浏览器中运行该项目,我在我的cmd中看到一个空白页面和这条消息:[MonAug0300:17:052015]PHPFatalerror:Unknown:Failedopeningrequired'public'(include_path='.;C:\php\pear\')inUnknownonline0出了什么问题? 最佳答案 听起来像是权限问题。我在W

php - 想象异常 : Postscript delegate failed imagick IIS

我正在使用这些行将pdf转换为jpg:$img=newimagick($url.'[0]');$im->setImageColorspace(255);$im->setCompressionQuality(95);$im->setImageFormat('jpeg');我已经使用softImageMagick6.7.7-102012-06-27Q16(x86)安装了imagick3.1.0RC2。我还有一个x86PHP5.4.22非线程,我在WindowsServer2012上使用IIS8。php_imagick.dll是5.14nts,所以它应该可以工作。ghostscript版本是

php - 无法使用 Composer 下载和安装 Laravel 5。错误 : HTTP request failed

我无法使用composer1.2.0(最新版本)下载lavarvel安装程序收到的错误:无法打开流:HTTP请求失败!我用谷歌搜索,但找不到解决此问题的答案。如果可能,有人请尝试运行这个命令composerglobalrequire"laravel/installer"来检查它是否有效?我认为指向packaglist的链接不再有效,但我不确定。C:\wamp\www\st>composerself-update-vvvReading./composer.jsonLoadingconfigfile./composer.jsonCheckedCAfileC:\Users\Louis\App

php - 错误的 DNS 设置,php_network_getaddresses : getaddrinfo failed Name or service not known, nslookup

问题原来是这样的:Warning:file_get_contents()[function.file-get-contents]:php_network_getaddresses:getaddrinfofailed:Nameorservicenotknownin/home///ppk_hotweb.class.phponline58我也使用了cURL,它只是返回null,仅此而已。(文件和cURL)都已启用。尝试了file_get_contents('google.com')并且成功了!为什么file_get_contents('domain.com.au')不起作用?所以我开始阅读相

php - GAE、PHP 和 GCM : failed to open stream: HTTP request failed! HTTP/1.0 405 方法不允许

我正在开发一个Web应用程序(使用适用于PHP的GAE),它会在某些内容可供下载时通知Android客户端(通过GCM-GoogleCloudMessaging)。下面的PHP脚本应该可以完成工作:$json=array('data'=>array(...),'registration_ids'=>array(...));$data=json_encode($json);$context=array('http'=>array('method'=>'post','header'=>'Authorization:key=MY_SECRET_KEY'."\r\n".'Content-Typ

php - mssql_execute 失败, "stored procedure execution failed"

我目前正在使用以下查询成功连接到位于Windows2008上的SQL数据库;$result=mssql_query("EXECdbo.stored_procedure_name@param_level=2");我的查询基于用VB/ADO编写的现有代码,看起来像;Iflevel=""Thenlevel=1cmdTT.ActiveConnection=connStrTest1setobjParam=cmdTT.CreateParameter("@param_level",adInteger,adParamInput,4,level)cmdTT.Parameters.AppendobjPar